﻿<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" lasteditedby="Geert" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
  <title translate="true">Behaviors &amp; triggers</title>
  <keywords>
    <keyword translate="true">Behaviors</keyword>
    <keyword translate="true">MVVM</keyword>
    <keyword translate="true">Triggers</keyword>
  </keywords>
  <body>
    <header>
      <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Behaviors &amp; triggers</text></para>
    </header>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">Behaviors and triggers are very important to correctly separate the view from the view model. For example, to respond to and event in a view model, you cannot simply subscribe to the events in the view. The </text><link displaytype="text" defaultstyle="true" type="topiclink" href="Behaviors_EventToCommand" styleclass="Normal" translate="true">EventToCommand</link><text styleclass="Normal" translate="true"> behavior is a great example to solve this problem.</text></para>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">Catel offers lots of behaviors out of the box, so it is definitely worth taking a look at the behaviors.</text></para>
  </body>
</topic>
